﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Utils;

namespace RedisTest.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            // 测试Redis是否正常使用？
            RedisHelper helper = new RedisHelper();
            helper.Write<String>("Test", "This Is A Test", RedisCacheId.ONE);

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}